package com.zxjbyte.yiyi.module.system.controller.log;

import com.zxjbyte.yiyi.framework.common.domain.api.PageQuery;
import com.zxjbyte.yiyi.framework.common.domain.api.PageResult;
import com.zxjbyte.yiyi.module.system.domain.vo.OperateLogListVO;
import com.zxjbyte.yiyi.module.system.service.OperateLogService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.extern.slf4j.Slf4j;
import org.springdoc.api.annotations.ParameterObject;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Author zhangxingjia
 * @Date 2023/3/13 12:04
 * @Version: 1.0
 */
@Slf4j
@Tag(name = "操作日志")
@RestController
@RequestMapping(value = "/system/operate-log")
public class OperateLogController {

    @Resource
    private OperateLogService operateLogService;

    @Operation(summary = "操作日志分页查询")
    @GetMapping("/list")
    public PageResult<OperateLogListVO> list(@ParameterObject PageQuery query){
        return operateLogService.list();
    }
}
